<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #one {
            width: 100px;
            border: 1px solid red;
            font-size: 12px;
            word-wrap: break-word;
        }
        #two {
            width: 100px;
            border: 1px solid red;
            font-size: 12px;
        }
    </style>
</head>
<body>
    长单词换行效果
    <p id="one">
        <b>word-wrap: break-word;</b> <br>
        可以让长单词换行<br>
        appppppppppppppppppppppppppppppppp
    </p>
    长单词正常会出问题的地方
    <p id="two">
        <b>word-wrap: break-word;</b> <br>
        可以让长单词换行<br>
        appppppppppppppppppppppppppppppppp
    </p>
</body>
</html>